$(document).ready(function() {
    showMoreInfo($("#div_"), "imgInfo");
});

var vendorId = "#vendorId";
var searchSelected = "#searchVendor";

function Vendor(id, name){
    var site = new Object();
    site.id = id;
    site.name = name;
    return site;
}

function searchVendors(name,type, url){
    windowCaller("Select a vendor", url, { "vendorcentral.name": name , "vendorcentral.type.id" : type});
}

function closeVendorWindows(vendor){
    $.window.closeAll();
    $(searchSelected).val(vendor.name);
    $(vendorId).val(vendor.id);
}